package com.zhangtai.modules.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import com.zhangtai.utils.Excel.ExcelAnnotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class SecurityDto {
    /**
     *
     */
    @TableId(value = "security_id", type = IdType.AUTO)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long securityId;



    /**
     *
     */

    @ApiModelProperty(value="方案名称")
    private String securityName;
    /**
     * 删除标识 0：未删除 1：已删除
     */
    @ApiModelProperty(value="删除标识 0：未删除 1：已删除")
    private Integer isDelete;
    /**
     *
     */
    @ExcelAnnotation(rowName = "参保地")
    @ApiModelProperty(value="缴纳地")
    private String cityName;
    /**
     * 缴纳单位全称
     */
    @ExcelAnnotation(rowName = "参保单位")
    @ApiModelProperty(value="缴纳单位全称")
    private String unitName;
    /**
     * 状态 0：启用  1：停用
     */
    @ApiModelProperty(value="状态 0：启用  1：停用")
    private Integer status;
    /**
     * 参保人数
     */
    @ApiModelProperty(value="参保人数")
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long number;


    @ExcelAnnotation(rowName = "参保人数")
    private String count;
    /**
     * 缴纳单位ID
     */
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long unitId;

    /**
     * 类型 0：社保 1：公积金
     */
    private Integer type ;

    @ExcelAnnotation(rowName = "汇缴期")
    private String dateQuTime;

    @ExcelAnnotation(rowName = "汇缴状态")
    private String confirmStatus;

    @ApiModelProperty(value="合同主体id")
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long    contractMainId;
}
